package 状态模式;

/**
 * @author zzs
 * @ClassName SoldOunt.java
 * @Description 售出状态
 * @createTime 2022年05月18日 20:28:00
 */
public class SoldOut implements Status{
    public Sweet sweet;

    public SoldOut(Sweet sweet) {
        this.sweet = sweet;
    }

    @Override
    public void put() {
        System.out.println("加钱");
    }

    @Override
    public void turn() {
        System.out.println("糖果卖完了");
    }

    @Override
    public void refund() {
        System.out.println("糖果卖完了");
    }

    @Override
    public void pop() {
        System.out.println("糖果卖完了");
    }
}
